<style type="text/css">
    <!--
    .text{	
        font-size:60px;
        font-weight: bold;
        text-align:center;
        font-family: cursive;
    }
    
    .namabatch{	
        font-size:22px;
        font-weight: bold;
        text-align:right;
        font-family: cursive;
    }
    
    .nomer{	
        font-size:14px;
        font-weight: bold;
        text-align:center;
        font-family: cursive;
    } 

    table.isi_tabel
    {
        border-width: 0 0 1px 1px;
        border-spacing: 0;
        border-collapse: collapse;
        border-style: solid;
    }
    -->
</style>

    <?
    echo'<table align="center" width="500" border="0" class="isi_tabel">';

    $no = 1;
    $no_peserta = 1;
    $counter = 1;
    foreach ($peserta->result() as $row) {
        $nama_panggilan = $row->NAMA_PANGGILAN;
        if($counter%2==1){
            echo'<tr>
                <td class="namabatch">
                    <p>&nbsp;</p>
                    <p>&nbsp;</p>
                    <p>&nbsp;</p>
                    <p>'.$nama_batch.'</p>
                </td>';
            
            if($counter < $jumlah_peserta){
                echo '<td class="namabatch">
                        <p>&nbsp;</p>
                        <p>&nbsp;</p>
                        <p>&nbsp;</p>
                        <p>'.$nama_batch.'</p>
                      </td>';
            }
            
            echo'
            </tr>
            <tr>
            <td class="text" width="250">'.$nama_panggilan.'</td>';
            
            if($counter == $jumlah_peserta){
                echo'</tr>';
                echo'<tr>
                <td class="nomer">
                    <p>Mandala Kencana - 0821 12838300</p>
                    <p>&nbsp;</p>
                    <p>&nbsp;</p>
                </td>
                </tr>';
            }
        }
        else{
            echo'<td class="text" width="250">'.$nama_panggilan.'</td>
                </tr>';
            
            //start nomer
            echo'<tr>
                 <td class="nomer">
                    <p>Mandala Kencana - 0821 12838300</p>
                    <p>&nbsp;</p>
                    <p>&nbsp;</p>
                 </td>
                 <td class="nomer">
                    <p>Mandala Kencana - 0821 12838300</p>
                    <p>&nbsp;</p>
                    <p>&nbsp;</p>
                 </td>
                </tr>
                ';
            //end nomer
            
            }



                   if($counter == 4){
                       echo '<p style="page-break-after: always">&nbsp;</p>';
                   }
       $counter++;
    }
    echo'
        </table>';
    ?>
<p>&nbsp; </p>